import { useStore } from "@/zustand/index"

const practice6 = () => {
    const { count1, inc1, count2, inc2 } = useStore()
    return (
        <div>
            <div>zustand切片</div>
            <button onClick={inc1}>change count1 -》 {count1}</button>
            <button onClick={inc2}>change count2 -》{count2}</button>
        </div>
    )
}

export default practice6